package com.weixing.mall.provider.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.weixing.mall.base.constant.DatePattern;
import com.weixing.mall.base.enums.IsEnableEnum;
import com.weixing.mall.provider.api.model.enums.AgentLevelEnum;
import com.weixing.mall.provider.api.model.enums.ProfitFromEnum;
import com.weixing.mall.provider.model.enums.IsPayEnum;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassName AgentRebateWithdrawVo
 * @Description TODO <br/>
 * @Author gjq
 * @Modified By:
 * @Date 2019/10/16
 * @Version 1.0
 **/
@Data
public class AgentRebateWithdrawVo {
    //id
    private Long id;
    //代理商编号(表里面是代理商id)
    private Long agentId;
    //订单编号（表里面是订单id）
    private Long orderId;
    //返利金额
    private BigDecimal rebateAmount;
    //返利途径
    private ProfitFromEnum rebateFrom;
    //是否有效
    private IsEnableEnum isEnable;
    //是否付款
    private IsPayEnum isPay;
    //备注
    private String remark;

    //代理商等级
    private AgentLevelEnum agentLevel;


    //订单编号
    private String orderSn;
    //订单金额
    private BigDecimal orderPrice;
    //订单创建时间（下单时间）
    @JsonFormat(locale="zh", timezone="GMT+8", pattern= DatePattern.NORM_DATETIME_PATTERN)
    private Date createdTime;
}
